﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Petaframe.DataAccessLayer
{
    public interface IRepository<T> where T : class
    {
        //T FindBy(string selectCommand);
        //T FindByID(object id);       
        //IEnumerable<T> FindAll();
        //IEnumerable<T> FindAll(string selectCommand);
        ////IPagedResults<T> Paged(int currentPage, int pageSize,int a);
        //IPagedResults<T> Paged(int currentPage, int pageSize, string columns, string whereCommandText);
        //object Insert(T item);
        //void Update(T item);
        //void Delete(T item);
        //object GetScalar(string commandText);

        //IDetachedQuery DetachedQuery { get; set; }
        //void AddParameter(string parameterName, object parameterValue, SqlDbType dbType, int parameterSize);
        //void AddOutputParameter(string parameterName,  SqlDbType dbType, int parameterSize);
    }
}
